import request from '@/utils/request'

// 查询学生证补办列表
export function listStuIdReissue(query) {
  return request({
    url: '/routine/stuIdReissue/list',
    method: 'get',
    params: query
  })
}

// 查询学生证补办列表
export function listStuIdReissueName(query) {
  return request({
    url: '/routine/stuIdReissue/listName',
    method: 'get',
    params: query
  })
}

// 根据辅导员名字查询学生证补办列表
export function getListByCounsellorName() {
  return request({
    url: '/routine/stuIdReissue/getListByCounsellorName',
    method: 'get'
  })
}

// 通过学号查询注册信息
export function getStuByStuId(query) {
  return request({
    url: '/routine/stuIdReissue/getStuByStuId',
    method: 'get',
    params: query
  })
}

// 根据学生学号获取学生基础信息
export function getStudentInfoByStuId(stuNo) {
  return request({
    url: '/routine/stuIdReissue/getStudentInfoByStuId/' + stuNo,
    method: 'get',
  })
}

// 查询学生证补办详细
export function getStuIdReissue(id) {
  return request({
    url: '/routine/stuIdReissue/' + id,
    method: 'get'
  })
}

// 查询学生证补办详细
export function getInfoByStuNo(stuNo) {
  return request({
    url: '/routine/stuIdReissue/getInfoByStuNo/' + stuNo,
    method: 'get'
  })
}

// 新增学生证补办
export function addStuIdReissue(data) {
  return request({
    url: '/routine/stuIdReissue/add',
    method: 'post',
    data: data
  })
}

// 新增审核信息
export function StuMultiLevelReviewAdd(data) {
  return request({
    url: '/routine/stuIdReissue/StuMultiLevelReviewAdd',
    method: 'post',
    data: data
  })
}

// 修改学生证补办
export function updateStuIdReissue(data) {
  return request({
    url: '/routine/stuIdReissue/update',
    method: 'post',
    data: data
  })
}

// 删除学生证补办
export function delStuIdReissue(id) {
  return request({
    url: '/routine/stuIdReissue/' + id,
    method: 'post'
  })
}
